// 组织架构模块
import request from '@/utils/request'
/**
 *
 * @returns 通用文件上传
 */
export function upload(formData) {
  return request({
    url: '/common/upload',
    method: 'post',
    headers: {
      'Content-Type': 'multipart/form-data'
    },
    data: formData
  })
}
/**
 * 获取部门Echarts图表数据
 * @returns
 */
export function download(fileUrl) {
  return request({
    url: '/common/download',
    method: 'get',
    params: { fileUrl }
  })
}
